package com.david.documentation.service.category;

import com.david.documentation.domain.entities.category.Category;

import java.util.List;

public interface CategoryService {

	Category findById(Long id);

	void save(Category category);

    Category update(Category category);

    void remove(Category category);

    long size();

    List<Category> findAll();

	boolean categoryExists(String name);

	Category findCategoryByName(String name);

	boolean checkforDublicate(String name);

	Number getNumberOfDokus(Long catId);

	List<Category> findCategorysByName(String name);

}
